<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<RMH.Entities.Stay>" %>

<%@ Import Namespace="RMH.Entities" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Ronald McDonald House - Stay Details
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Stay Details
        <%
            if (Model.Type == OccupancyType.Patient)
            { %>
        for
        <%= Html.Encode(Model.Patient.GetFullName())%>
        <% } %>
    </h2>
    <fieldset>
        <legend>Dates</legend>
        <div class="leftColumn">
            <p>
                Checkin Date:
                <%= Html.Encode(String.Format("{0:g}", Model.CheckinDate)) %>
            </p>
            <p>
                Checkin By:
                <%= Html.Encode(Model.CheckinBy) %>
            </p>
        </div>
        <div>
            <p>
                Checkout Date:
                <%= Html.Encode(String.Format("{0:g}", Model.CheckoutDate)) %>
            </p>
            <p>
                Checkout By:
                <%= Html.Encode(Model.CheckoutBy) %>
            </p>
        </div>
    </fieldset>
    <fieldset>
        <legend>Medical</legend>
        <div class="leftColumn">
            <p>
                Preauthorization Sent Date:
                <%= Html.Encode(String.Format("{0:d}", Model.PreauthorizationSentDate)) %>
            </p>
            <p>
                Preauthorization Approved Date:
                <%= Html.Encode(String.Format("{0:d}", Model.PreauthorizationApprovedDate)) %>
            </p>
            <p>
                Medicaid Number:
                <%= Html.Encode(Model.MedicaidNumber) %>
            </p>
            <p>
                Social Worker Name:
                <%= Html.Encode(Model.SocialWorkerName) %>
            </p>
        </div>
        <div>
            <p>
                Hospital Unit:
                <%= Html.Encode(Model.HospitalUnit) %>
            </p>
            <p>
                Hospital Room Number:
                <%= Html.Encode(Model.HospitalRoomNumber) %>
            </p>
            <p>
                Hospital Phone Number:
                <%= Html.Encode(Model.HospitalPhoneNumber) %>
            </p>
        </div>
    </fieldset>
    <p>
        <%=Html.ActionLink("Edit", "Edit", new { id=Model.Id }) %>
        |
        <%=Html.ActionLink("Back to List", "Index") %>
    </p>
</asp:Content>
